package cn.seamus.marksman.common;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public enum PageNavigator {
    DO_LOGIN("DO_LOGIN", "登录"),

    OPEN_GOODS("OPEN_GOODS", "打开商品页"),

    OPEN_CART("OPEN_CART", "打开购物车");
    private String key;
    private String description;

    private PageNavigator(String key, String description) {
        this.key = key;
        this.description = description;
    }

    public String getKey() {
        return this.key;
    }

    public String getDescription() {
        return this.description;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}
